package com.hdoit.pisces.web.rel.modelconfig;

import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class EventConfig extends ModelMetadataAttributeConfiguration{
	public EventConfig(){
		this.setProperty("relativeId")
			.hasAttribute(new DisplayNameAttribute("亲属账号"))
			.hasAttribute(new RequiredAttribute("亲属账号为必填项"));
		
		this.setProperty("relative_name")
			.hasAttribute(new DisplayNameAttribute("亲属姓名"));

		this.setProperty("eventDate")
			.hasAttribute(new DisplayNameAttribute("发生日期"))
		    .hasAttribute(new RequiredAttribute("发生日期为必填项"));
		
		this.setProperty("eventInfo")
			.hasAttribute(new DisplayNameAttribute("事件说明"));
	
	}
}